<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h3>修改用户</h3>
<hr/>
<form th:action="@{/users/addUser}" method="post">
    <input type="hidden" name="userId" th:value="${users.userId}">
    姓名：<input type="text" name="userName" th:value="${users.userName}"/><br/>
    密码：<input type="text" name="password" th:value="${users.password}"/><br/>
    用户类型：<input type="radio" name="userType" value="1" th:checked="${users.userType==1}" />管理员
    <input type="radio" name="userType" value="0" th:checked="${users.userType==0}"/>普通用户<br/>
    角色：<input type="radio" name="roleId" value="1" th:checked="${users.roleId==1}"/>开发人员
    <input type="radio" name="roleId" value="2" th:checked="${users.roleId==2}"/>测试人员<br/>
    描述：<input type="text" name="userDescription" th:value="${users.userDescription}"/><br/>
    时间：<input type="date" name="inputDate" th:value="${#dates.format(users.inputDate,'yyyy-MM-dd')}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>

</body>
</html>